package com.okq.entity;

import com.okq.entity.base.DataEntity;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Transient;
import java.io.Serializable;

/**
 * 描述 : 订单表实体类
 * 作者 : zdl
 * 日期 : 2017/6/28 9:43
 */
@Entity
@DynamicInsert
@DynamicUpdate
@Table(name = "tb_order")
public class Order extends DataEntity implements Serializable {
	
  

	private static final  long serialVersionUID = -7717922264981118095L;
        
    /**
     * 客户Id
     */
    @Column(name = "customerId", length = 40)
    private String customerId;
    
    /**
     * 交付时间
     */
    @Column(name = "deliverTime")
    private String deliverTime;
    /**
     * 负责人(销售人员)Id
     */
    @Column(name = "chargeId", length = 40)
    private String chargeId;

    /* ---------------- 查询条件 ---------------- */

    /**
     * 客户关键字
     */
    @Transient
    private String customerKeyWord;
    /**
     * 客户Ids
     */
    @Transient
    private String customerIds;

    public String getCustomerId() {
        return customerId;
    }

    public void setCustomerId(String customerId) {
        this.customerId = customerId;
    }

    public String getDeliverTime() {
        return deliverTime;
    }

    public void setDeliverTime(String deliverTime) {
        this.deliverTime = deliverTime;
    }

    public String getChargeId() {
        return chargeId;
    }

    public void setChargeId(String chargeId) {
        this.chargeId = chargeId;
    }

    public String getCustomerKeyWord() {
        return customerKeyWord;
    }

    public void setCustomerKeyWord(String customerKeyWord) {
        this.customerKeyWord = customerKeyWord;
    }

    public String getCustomerIds() {
        return customerIds;
    }

    public void setCustomerIds(String customerIds) {
        this.customerIds = customerIds;
    }
}
